<script type="text/javascript" src="jquery/jquery-latest.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
$("#askq").click(function()
{
var id=$("#ask").val();
var dataString = 'id='+ id;

$.ajax
({
type: "POST",
url: "ajax_ans.php",
data: dataString,
cache: false,
success: function(html)
{
	$("#ans").html(html);
} 
});
});
});
</script>

<form name="search_quastion" id="search_quastion" enctype="multipart/form-data" method="post" action="">
                           <div id="ques">
                           <?php
						   $sql=mysql_query("select * from faq where faq_id=".$_REQUEST['fid']); 
									$row=mysql_fetch_array($sql);									
										echo '<div style="font-size:14px;"><b>'.$row['faq'].'</b></div>';
						   ?>
                            <div class="quesleft">
                            <?php 										
										$ans=mysql_query("select * from answers where faq_id=".$_REQUEST['fid']);										
										while($res=mysql_fetch_array($ans))
										{
											echo $res['answers'];											
										}										
									
								?>                                
                              <br><br>
                              <a href="search_question.php">Ask a question</a>
							  <div id="ans" align="center"></div>
                              </div>
                              <div class="quesright">
                              <ul>
                              	<?php $sql=mysql_query("select * from faq where faq_id NOT IN (".$_REQUEST['fid'].") order by rand() limit 0,10"); 
									while($row=mysql_fetch_array($sql))
									{
										echo '<li><a href="question_dtl.php?fid='.$row['faq_id'].'">'.$row['faq'].'</a></li>';
									}
								?>
                              </ul>
                              </div>
                              </div>							 
									
                        </form>
                        <!--End  search_quastions-->
                    
		